package com.shortlink.server.dto.shortlinkmapper;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDate;

/**
 * 短链接映射更新请求实体
 *
 * @author wp
 */
@AllArgsConstructor
@NoArgsConstructor
@Setter
@Getter
public class ShortLinkMapperUpdateReqDTO {
    /**
     * 短链接ID
     */
    private Long shortLinkId;
    /**
     * 有效期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate validDate;
}
